package com.yuxi.modelDesc;

import lombok.Data;
import com.yuxi.model.ProductType;


import com.yuxi.enums.ProductTypeShowFlagEnum;
import com.yuxi.enums.ProductTypeDelFlagEnum;
import com.yuxi.enums.ProductTypeTypeFlagEnum;

/**
*    @author sunke
*    @Date 2023-10-13 10:28:19
*    @description ProductTypeDesc      产品分类
*/
@Data
public class ProductTypeDesc extends ProductType {


    private String showFlagDesc;
    private String delFlagDesc;
    private String typeFlagDesc;

    public String getShowFlagDesc() {
        showFlagDesc=ProductTypeShowFlagEnum.getDescByType(getShowFlag());
        return showFlagDesc;
    }
    public String getDelFlagDesc() {
        delFlagDesc=ProductTypeDelFlagEnum.getDescByType(getDelFlag());
        return delFlagDesc;
    }
    public String getTypeFlagDesc() {
        typeFlagDesc=ProductTypeTypeFlagEnum.getDescByType(getTypeFlag());
        return typeFlagDesc;
    }
}

